html,body{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
body{
    display: flex;
    flex-direction: column;
    font-size: 14px;
}
.header{
    width: 100%;
    height: 54px;
    background-color: #1b1b1b;
}
.left,.right{
    width: 0;
    background-color: #ccc;
    overflow: hidden;
}
.center{
    width: 100px;
    background-color: white;
}

.lyrow,.box{
    position: relative;
}
.tool{
    display: inline-block;
    position: absolute;
    top: 0;
    right: 10px;
    line-height: 20px;
    font-size: 10px;
    user-select: none;
    cursor: pointer;
    z-index: 10;
}
.tool .remove{
    background-color: rgb(245, 55, 55);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    box-sizing: border-box;
}
.tool .drag{
    background-color: rgb(98 82 169);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: move;
    box-sizing: border-box;
}
.nav-title{
    color: white;
    margin: 20px 0 10px;
}
/* 左侧预览组件 */
.sidebar-nav .nav-list{
    padding-left: 15px;
    padding-right: 15px;
}
.sidebar-nav .preview .layout {
    width: 90px;
    background: #bbb;
    font-size: 10px;
    color: #999;
    line-height: 20px;
    height: 20px;
    text-align: center;
}
.sidebar-nav .lyrow,.sidebar-nav .box{
    margin-bottom: 10px;
}


.sidebar-nav .remove{
    display: none;
}
.sidebar-nav .view{
    display: none;
}
/* 编辑模式 */
.edit .left,.edit .right{
    width: 200px;
}
.edit #container{
    padding: 10px;
}
.edit #container .lyrow{
    overflow: hidden;
    border-radius: 4px;
    background-color: #F5F5F5;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1);
    border: 1px solid #DDDDDD;
    border-radius: 4px 4px 4px 4px;
    margin: 10px;
    position: relative;
    padding:10px;
    padding-top: 20px;
}
.edit #container .tool{
    opacity: 0.5;
}
.edit #container .box:hover > .tool:first-child,.edit #container .lyrow:hover > .tool:first-child{
    opacity: 1;
}
.edit #container .preview{
    display: none;
}
.edit #container .box{
    margin: 10px;
}
.edit #container .column{
    min-height: 50px;
    background-color: white;
}


/* 预览模式 */
.sourcepreview #container{
    padding: 0 20px;
}
.sourcepreview #container .preview,.sourcepreview #container .tool{
    display: none;
}